<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<title> hAdmin- 主页</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
		<link rel="shortcut icon" href="favicon.ico">
		<link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
		<link href="__STATIC__/css/font-awesome.min.css" rel="stylesheet">
		<link href="__STATIC__/css/animate.css" rel="stylesheet">
		<link href="__STATIC__/css/style.css" rel="stylesheet">
		<!--表单元素css-->
		<link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">

	</head>

	<body class="fixed-sidebar full-height-layout gray-bg">
		<div id="wrapper">
			<!--左侧导航开始-->
			<include file="Public/left" title="left" />
			<!--左侧导航结束-->
			<!--右侧部分开始-->
			<div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
				<include file="Public/top" title="top" />
				<div class="row J_mainContent" id="content-main">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>添加用户 <small>添加后台管理</small></h5>
							</div>
							<div class="ibox-content">
								<form action="{:U('member/update')}" method="post" class="form-horizontal">
									<div class="form-group">
										<label class="col-sm-2 control-label">用户ID</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ID" disabled="disabled" value="{$model.id}">
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="username" value="{$model.username}">
										</div>
									</div>

									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">手机号</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="phone" value="{$model.phone}">
										</div>
									</div>

									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">会员过期时间</label>
										<div class="col-sm-10"><input class="form-control" type="text" name="tianshu" placeholder="tianshu" value="{$model.tianshu|date='Y-m-d',###}"> (
											<font color="#FF0000 ">请直接修改下面日期格式</font>)</div>
									</div>

									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">付费下载次数</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="downnum" placeholder="付费下载次数" value="{$model.downnum}"></div>

									</div>									
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">每日下载次数</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="everydaynum" placeholder="每日下载次数" value="{$model.everydaynum}"></div>

									</div>

									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">空间大小(MB)</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="allowsize" placeholder="allowsize" value="{$model.allowsize}"></div>

									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">限制上传大小(MB)</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="singlesize" placeholder="singlesize" value="{$model.singlesize}"></div>

									</div>
									<div class="hr-line-dashed"></div>
									
									<div class="form-group">

										<label class="col-sm-2 control-label">会员已上传大小(MB):</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="uploadedsize" disabled="disabled" placeholder="uploadedsize" value="{$model.uploadedsize}"></div>

									</div>
									
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">新密码</label>
										<div class="col-sm-10">
											<input class="form-control" type="password" name="password" placeholder="不填写则不更改"></div>

									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">用户类型</label>
										<div class="checkbox i-checks">
											<label class="radio-inline">

          <input type="radio" name="type" id="type" value="1" <if condition="$model.type eq 1">checked="checked"</if>>前台用户

        </label></div>

										<!--         <label class="radio-inline">

          <input type="radio" name="type" id="type" value="2" <if condition="$model.type eq 2">checked="checked"</if>>管理员

        </label> -->

									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">是否VIP</label>
										<div class="checkbox i-checks">
											<label class="radio-inline">
          <input type="radio" name="isvip" id="isvip" value="0" <if condition="$model.isvip eq 0">checked="checked"</if>>是
        </label>
											<label class="radio-inline">
          <input type="radio" name="isvip" id="isvip" value="1" <if condition="$model.isvip eq 1">checked="checked"</if>>否
        </label>
										</div>
									</div>

									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">用户状态</label>
										<div class="checkbox i-checks">
											<label class="radio-inline">
												<input type="radio" name="status" id="status" value="0" <if condition="$model.status eq 0">checked="checked"</if>>禁止登陆
											</label>
											<label class="radio-inline">
												<input type="radio" name="status" id="status" value="1" <if condition="$model.status eq 1">checked="checked"</if>>正常
											</label>
										</div>
									</div>

									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">用户选择上传方式</label>
										<div class="checkbox i-checks">
											<label class="radio-inline">
												<input type="radio" name="isggconfig" id="isggconfig" value="0" <if condition="$model.isggconfig eq 0">checked="checked"</if>>七牛
											</label>
											<label class="radio-inline">
												<input type="radio" name="isggconfig" id="isggconfig" value="1" <if condition="$model.isggconfig eq 1">checked="checked"</if>>服务器外部存储
											</label>
											<label class="radio-inline">
												<input type="radio" name="isggconfig" id="isggconfig" value="2" <if condition="$model.isggconfig eq 2">checked="checked"</if>>服务器内部存储
											</label>
										</div>
									</div>

									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">上传类型</label>
										<div class="checkbox i-checks">
											<label class="radio-inline">
												<input type="radio" name="uptype" id="uptype" value="1" <if condition="$model.uptype eq 1">checked="checked"</if>>七牛
											</label>
										</div>
									</div>
									
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">accesskey</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="accesskey" placeholder="accesskey" value="{$model.accesskey}">
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">secretkey</label>

										<div class="col-sm-10"> <input class="form-control" type="text" name="secretkey" placeholder="secretkey" value="{$model.secretkey}">
										</div>

									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">bucket</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="bucket" placeholder="bucket" value="{$model.bucket}">
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">domain</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="domain" placeholder="domain" value="{$model.domain}">
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">uptoken</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="uptoken" placeholder="uptoken" value="{$model.uptoken}">
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

										<label class="col-sm-2 control-label">备注</label>
										<div class="col-sm-10">
											<textarea class="form-control" name="beizhu" placeholder="随意介绍" rows="5" cols="20">{$model.beizhu}</textarea>
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<div class="col-sm-4 col-sm-offset-2">
											<input type="hidden" name="id" value="{$model.id}">

											<input type="hidden" name="fid" value="{$fid}">

											<button class="btn btn-success" type="submit">更新</button>
										</div>
									</div>

								</form>

							</div>
						</div>
					</div>
				</div>
			</div>
			<!--右侧部分结束-->

			<!-- 全局js -->
			<script src="__STATIC__/js/jquery.min.js"></script>
			<script src="__STATIC__/js/bootstrap.min.js"></script>
			<script src="__STATIC__/js/content.js"></script>

			<!-- iCheck -->
			<script src="__STATIC__/js/plugins/iCheck/icheck.min.js"></script>
			<script>
				$(document).ready(function() {
					$('.i-checks').iCheck({
						checkboxClass: 'icheckbox_square-green',
						radioClass: 'iradio_square-green',
					});
				});
			</script>
	</body>

</html>